package com.globallogic.university;

/**
 *
 */
public class Subject {
	private final String name;
	private String department;
	private final int yearStudy;
    private Teacher teacher; // По идее связь должна быть многие ко многим. Но пусть будет так.
    private int times_a_week = 1;

    public Subject(String name, int yearStudy, int times_a_week) {
        this.name = name;
        this.yearStudy = yearStudy;
        this.teacher = null;
        this.times_a_week = times_a_week;
    }

    public String getName() {
		return this.name;
	}

	public String getDepartment() {
		return this.department;
	}

	/**
	 * 
	 * @param department
	 */
	protected void setDepartment(String department) {
		this.department = department;
	}

	public int getYearStudy() {
		return this.yearStudy;
	}

    public Teacher getTeacher() {
        return this.teacher;
    }

    public void setTeacher(Teacher teacher) {
        this.teacher = teacher;
    }

    public int getTimes_a_week() {
        return this.times_a_week;
    }

    public void setTimes_a_week(int times_a_week) {
        this.times_a_week = times_a_week;
    }

}